package com.whh.starter.utils;

import cn.hutool.core.util.IdUtil;

import java.util.UUID;

public class IDUtil {
    private IDUtil(){}

    public static String generator() {
        return UUID.randomUUID().toString().replace("-","");
    }

    public static String fastUUID(){
        return IdUtil.fastUUID();
    }
    public static String snowflake(long workerId, long datacenterId){
        return IdUtil.getSnowflake(workerId, datacenterId).nextIdStr();
    }



}
